<?php

class SigninForm extends BaseForm
{

	public function setup()
	{
		$this->setWidgets(array(
			'username' => new sfWidgetFormInputText(),
			'password' => new sfWidgetFormInputPassword(array('type' => 'password')),
		));

		$this->setValidators(array(
			'username' => new sfValidatorString(),
			'password' => new sfValidatorString(),
		));

		$this->validatorSchema->setPostValidator(new sfGuardValidatorUser());

		$this->widgetSchema->setNameFormat('signin[%s]');
	}

}